package com.lk.springboot.utils;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Random;

/**
 * @author lk
 * @date 2020/7/24 15:02
 * @description:
 */
public enum SubwayMap {

    SAN_YANG_GUANG_CHANG("120.29978243927002", "31.57585274927304"),
    HUA_QING_DA_QIAO("120.32802073577881", "31.533797396815697"),
    BAI_ZHUANG("120.35102336029053", "31.585796981735793"),
    DA_WANG_JI("120.27557818511963", "31.564883615493986");

    private String J;
    private String W;

    SubwayMap(String j, String w) {
        J = j;
        W = w;
    }

    public String getJ() {
        return J;
    }

    public void setJ(String j) {
        J = j;
    }

    public String getW() {
        return W;
    }

    public void setW(String w) {
        W = w;
    }

    private static final List<SubwayMap> VALUES =
            Collections.unmodifiableList(Arrays.asList(values()));
    private static final int SIZE = VALUES.size();
    private static final Random RANDOM = new Random();

    public static SubwayMap randomLetter()  {
        return VALUES.get(RANDOM.nextInt(SIZE));
    }
}
